body{
    background-color: #D8D8D8;
}
/* The navigation bar at the top of the screen code */
.topnav {
    background-color: #333;
    overflow: hidden;
  }
  
  .topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  

  .topnav a.active {
    background-color: #FA5858;
    color: white;
  }

.Top{
    text-align: center;
    font-size: 95px;

}

.intro{
    text-align: center;
    margin-left: 150px;
    margin-right: 150px;
    font-size: 20px;
}

b{
    color: #FA5858;
}

/* This is for the cards over subjects */
.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    border: 1px solid #f1f1f1;
    perspective: 1000px; 
    margin-left: 25px;
    margin-top: 25px;
    margin-right: 25px;
  }
  
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
  }
  
  .flip-card-front {
    background-color: #FA5858;
    color: black;
  }
  
  .flip-card-back {
    background-color: #FA5858 ;
    color: white;
    transform: rotateY(180deg);
  }
  /* This is splitting the div the the cards into 4 collumbs */
  .container {
    display: grid;
    align-items: center; 
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 1px;
   }

   .red{
    color: #FA5858;
  }
  .story {
    display: grid;
    align-items: center;
    grid-template-columns: 2fr 1fr ;
    column-gap: 1px;
  }
  .light{
    margin-left: 70px;
    font-size: 25px;
    text-align: center;
  }
  .side{
    margin-left: 160px;
  }
  .starter{
    text-align: center;
    font-size: 50px;
  }
  .words{
    text-align: center;
    font-size: 25px;
    margin: 30px;
  }
  .cop-car {
    width: 100px;
    height: 50px;
    background-image: url('kisspng-sports-car-police-car-drawing-clip-art-police-cliparts-transparent-5aab1237658a55.9238093815211607594159.png'); /* Example cop car image */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
      /* Position the car vertically centered */
    transform: translateY(-50%);
    animation: driveAcross 7s linear infinite;  /* Adjust timing as desired */
  }
  
  @keyframes driveAcross {
    0% {
      left: -120px;  /* Start outside the left edge */
    }
    100% {
      left: 100vw;  /* Move to the right edge */
    }
  }
  .john{
    text-align: left;
    font-size: 25px;
    margin-right: 100px;
  }
  .Nash {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Creates two equal columns */
    column-gap: 5px;  /* Increase gap for better visibility */
    align-items: center;  /* Centers content vertically */
    padding: 10px;  /* Optional: adds space inside the container */
    box-sizing: border-box;  /* Ensures padding doesn’t overflow */
  }
  .pic{
    margin-left: 80px;
    font-size: 25px;
    text-align: center;
  }
.uggg{
  width: 45%;
  height:50%;
}

.car{
  width:45%;
  height:50%;
  margin-left: 100px;
}
.try{
  margin-left: 100px;
  width: 45%;
  height: 85%;
}
.mini{
  text-align: center;
  font-size: 30px;
  color: #FA5858;
}
.funny{
  width: 70%;
  height: 25%;
}
.dude{
  text-align: center;
}
.pub{
  text-align: center;
  font-size: 30px;
}
.rock{
  width: 40%;
  height: 15%;
}
.final{
  text-align: center;
  color: #FA5858;
  font-size: 30px;
}
.mid{
  text-align: center;
}
.act a:hover{
  background-color: rgb(65, 166, 243);
  color: black;
  text-decoration: none;
  border-radius: 25px;
  padding: 15px;
}
.act a.active{
  background-color: #D8D8D8;
  color: black;
  text-decoration: none;
}

.act a {
  float: center;
  color: black;

  padding: 14px 16px;
  text-decoration: none;

}
.act{
  margin-left: 30px;
  font-size: large;
}